/*gSeRo1WD0EkupWOeyr1KX1oP9aJSJQqZwli0lwkXF6cv9y36fFb7PTXdAEvAZDUt*/
/*
 * @Author: zhangchangqing 
 * @PageInfo: 获取父页面参数的方法
 * @Date: 2018-04-19 10:38:05 
 * @Last Modified by: mikey.zhangchqf
 * @Last Modified time: 2018-07-19 14:14:32
 */
function getUrlParam(parm) {
	//获取父地址中的参数
	let appUrl = decodeURIComponent(window.parent.location.href).split('?');
	if (appUrl && appUrl[1]) {
		let appPrams = appUrl[1].split('&');
		if (appPrams && appPrams instanceof Array) {
			let parmObj = {};
			appPrams.forEach((item) => {
				let key = item.split('=')[0];
				let value = item.split('=')[1];
				parmObj[key] = value;
			});
			return parmObj[parm];
		}
	}
}
export { getUrlParam };

/*gSeRo1WD0EkupWOeyr1KX1oP9aJSJQqZwli0lwkXF6cv9y36fFb7PTXdAEvAZDUt*/